package zijin.service;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import zijin.config.OkHttpConfig;


import javax.websocket.ClientEndpoint;

/**
 * @Auther: hejianding
 * @Date: 2021/3/12 15:56
 * @Version: 1.0
 */
@Service
@FeignClient(value = "provider-server", fallback= HelloFeignFallbackService.class)
public interface HelloFeignService {

    @RequestMapping(value = "/hello" , method = RequestMethod.GET)
    String hello(@RequestParam("name") String name);
}

